﻿namespace Traffic.Entity;

/// <summary>
/// 巴士线路模板
/// </summary>
public partial class BusLineModel
{
    public int Id { get; set; }

    /// <summary>
    /// 商户ID，对应Company.ID
    /// </summary>
    public int CompanyId { get; set; }

    /// <summary>
    /// 对应BusLineType.ID
    /// </summary>
    public int TypeId { get; set; }

    /// <summary>
    /// 对应BusLineType.TypeName
    /// </summary>
    public string TypeName { get; set; } = null!;

    /// <summary>
    /// 线路名称
    /// </summary>
    public string LineName { get; set; } = null!;

    /// <summary>
    /// 终点省
    /// </summary>
    public string? OriginProvince { get; set; }

    /// <summary>
    /// 终点城市
    /// </summary>
    public string? OriginCity { get; set; }

    /// <summary>
    /// 总时长
    /// </summary>
    public int TotalMinute { get; set; }

    /// <summary>
    /// 班次间隔时间分钟
    /// </summary>
    public int IntervalMinute { get; set; }

    public double TotalKilo { get; set; }

    /// <summary>
    /// 包车价格
    /// </summary>
    public decimal CharteredPrice { get; set; }

    /// <summary>
    /// 是否有往返程价格
    /// </summary>
    public bool HasPackagePrice { get; set; }

    /// <summary>
    /// 价格
    /// </summary>
    public decimal Price { get; set; }

    /// <summary>
    /// VIP价格
    /// </summary>
    public decimal VipPrice { get; set; }

    /// <summary>
    /// 该班次最大载客数
    /// </summary>
    public int MaxMember { get; set; }

    /// <summary>
    /// 客运类别  直达、普通
    /// </summary>
    public string? TrafficType { get; set; }

    /// <summary>
    /// 线路种类  省际、市际、县际、县内、港澳、国际
    /// </summary>
    public string? LineType { get; set; }

    /// <summary>
    /// 班次种类  始发、配客
    /// </summary>
    public string? FrequencyType { get; set; }

    /// <summary>
    /// 班次类型  正班、加班、顶班
    /// </summary>
    public string? FrequencyModel { get; set; }

    /// <summary>
    /// 巴士类型 特大型、大型、中型、小型
    /// </summary>
    public string? CarModel { get; set; }

    /// <summary>
    /// 车辆等级  高三级、高二级、高一级、中级、普通级
    /// </summary>
    public string? CarLevel { get; set; }

    /// <summary>
    /// 全票价格上限
    /// </summary>
    public decimal FullTicketMaxPrice { get; set; }

    /// <summary>
    /// 全票执行价
    /// </summary>
    public decimal FullTicketPrice { get; set; }

    /// <summary>
    /// 半票价
    /// </summary>
    public decimal HalfTicketPrice { get; set; }

    /// <summary>
    /// 学生票价
    /// </summary>
    public decimal StudentTicketPrice { get; set; }

    /// <summary>
    /// 残疾军人票价
    /// </summary>
    public decimal DisabledArmymanTicketPrice { get; set; }

    /// <summary>
    /// 座位类型  座位、卧铺
    /// </summary>
    public string SitType { get; set; } = null!;

    /// <summary>
    /// 是否商务大巴  1:是  0：否
    /// </summary>
    public bool IsBusinessBus { get; set; }

    /// <summary>
    /// True:私有线路，不与其他商户混线。  False:公有线路，可与其他商户混搭。
    /// </summary>
    public bool IsPrivate { get; set; }

    /// <summary>
    /// 是否促销线路 0：否（默认正常班次）  1：是
    /// </summary>
    public bool IsPromotion { get; set; }

    /// <summary>
    /// 是否去程  0：否 返程    1：是 去程（默认）
    /// </summary>
    public bool IsGo { get; set; }

    /// <summary>
    /// 班车（默认）  专车
    /// </summary>
    public string GoodsType { get; set; } = null!;

    /// <summary>
    /// 状态  默认1正常  0：停用  1：正常
    /// </summary>
    public bool Status { get; set; }

    /// <summary>
    /// 使用南粤通API
    /// </summary>
    public bool UseNanYueApi { get; set; }
}
